
package org.apache.solr.highlight;

import org.apache.lucene.search.vectorhighlight.BoundaryScanner;
import org.apache.lucene.search.vectorhighlight.FragmentsBuilder;
import org.apache.solr.common.params.SolrParams;

public class ScoreOrderFragmentsBuilder extends SolrFragmentsBuilder {

    @Override
    protected FragmentsBuilder getFragmentsBuilder(SolrParams params, String[] preTags, String[] postTags, BoundaryScanner bs) {

        org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder sofb = new org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder(preTags, postTags, bs);
        sofb.setMultiValuedSeparator(getMultiValuedSeparatorChar(params));

        return sofb;
    }

    // SolrInfoMBeans methods
    @Override
    public String getDescription() {
        return "ScoreOrderFragmentsBuilder";
    }

    @Override
    public String getSource() {
        return "$URL: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_4_0/solr/core/src/java/org/apache/solr/highlight/ScoreOrderFragmentsBuilder.java $";
    }
}
